package cn.lg.soar.system.biz.modules.tenant;

import cn.lg.soar.database.base.entity.ITenantEntity;
import cn.lg.soar.system.biz.modules.tenant.client.TenantApiClient;
import cn.lg.soar.system.biz.modules.tenant.controller.*;
import cn.lg.soar.system.biz.modules.tenant.service.impl.*;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2024/2/23 16:30
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ImportAutoConfiguration({
        TenantServiceImpl.class,
        TenantUserServiceImpl.class,
        TenantGrantMenuServiceImpl.class,
        TenantComboMealServiceImpl.class,
        TenantComboMealMenuServiceImpl.class,
        TenantConfigServiceImpl.class,

        // controller
        TenantController.class,
        TenantUserController.class,
        TenantComboMealController.class,
        TenantComboMealMenuController.class,
        TenantConfigController.class,
        // client
        TenantApiClient.class,
})
@ConditionalOnProperty(name = ITenantEntity.CONFIG_NAME, havingValue = "true")
public class TenantConfiguration {

}
